
-- set up a bunch of global tables that will control
-- the position of the gui elements.

local cx=0

local function shift(rect)
	cx=cx+rect.w
end

function foo() 
	if(true) then
		local function bar()
		end
		return bar
	end
	retrun nil
end
--!!

--!! hi

DamageInfo = { w=1024-400, h=440, x=200, y=270 }

Ship = { x=cx, w=150, h=200 }
shift(Ship)

Prompt = { x=cx, w=250,	h=60, y=0 }

Weapons = {x=cx, w=250, h=140, y=Prompt.h }
shift(Weapons)

History = {x=cx, w=250,	h=200}
shift(History)

Target	= {x=cx, w=150,	h=200}
shift(Target)

MiniMap	= {x=cx, w=224,	h=200}
shift(MiniMap)


Timeline = { x=0, y=200, w=1024,h=20 }
Map = {x=0, y=Timeline.y+Timeline.h, w=1024, h=568}
